/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package model;

import java.util.Date;

/**
 *
 * @author Trang
 */
public class Revenuebyproduct {
   
    private Product product;
    private Date createTime;
    private int quantity;
    private double price;
    
    private int totalQuantity;
    private double totalPrice;

    public Revenuebyproduct(Product product, Date createTime, int quantity, double price) {
        this.product = product;
        this.createTime = createTime;
        this.quantity = quantity;
        this.price = price;
    }

    public Revenuebyproduct(Product product, double price, int totalQuantity, double totalPrice) {
        this.product = product;
        this.price = price;
        this.totalQuantity = totalQuantity;
        this.totalPrice = totalPrice;
    }

   

    public int getTotalQuantity() {
        return totalQuantity;
    }

    public void setTotalQuantity(int totalQuantity) {
        this.totalQuantity = totalQuantity;
    }

    public double getTotalPrice() {
        return totalPrice;
    }

    public void setTotalPrice(double totalPrice) {
        this.totalPrice = totalPrice;
    }
        
    
    public Product getProduct() {
        return product;
    }

    public void setProduct(Product product) {
        this.product = product;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public int getQuantity() {
        return quantity;
    }

    public void setQuantity(int quantity) {
        this.quantity = quantity;
    }

    public double getPrice() {
        return price;
    }

    public void setPrice(double price) {
        this.price = price;
    }
    
    
}
